<!DOCTYPE HTML>
<html>
<head>
  <meta charset="UTF-8">
</head>

<body>
<audio id="myaudio" src="../static/audio/1.mp3" controls="controls" loop="false" hidden="true">
</audio>
<input type="button" onclick="autoPlay()" value="播放"/>

<script language="javascript" type="text/javascript">
  function autoPlay() {
    var myAuto = document.getElementById('myaudio');
    myAuto.play();
  }
</script>
</body>
</html>
